﻿using System;
using System.Collections.Generic;
using System.Web;

namespace FDeal
{
    public class ThongTinTaiKhoanCTL
    {
        private ThongTinTaiKhoanDTO info = new ThongTinTaiKhoanDTO();
        private ThongTinTaiKhoanDAO data = new ThongTinTaiKhoanDAO();

        public ThongTinTaiKhoanDTO ThanhToan
        {
            get
            {
                return info;
            }
            set
            {
                info = value;
            }
        }

        public void insert()
        {
            data.insert(info);
        }

        public void delete()
        {
            data.delete(info.Idtaikhoan);
        }

        public void update()
        {
            data.update(info);
        }

        public ThongTinTaiKhoanDTO[] getDsThongTinTaiKhoan()
        {
            return data.getDsThongTinTaiKhoan();
        }
    }
}